# -*- coding: utf-8 -*-
from __future__ import unicode_literals

import sys
from django.contrib import admin

# Register your models here.
from django.contrib.admin import ModelAdmin

from app_fault.models import *
reload(sys);
sys.setdefaultencoding("utf8")

@admin.register(FaultRecord)
class FaultRecordAdmin(ModelAdmin):
    # list_display = ('name', 'desc', 'url', 'path', 'type', 'status')
    exclude = ('create_date', 'update_date')
    search_fields = ('results', 'remark', "type", "status")  # 页面添加查询栏


@admin.register(FaultRecordImg)
class FaultRecordImgAdmin(ModelAdmin):
    # list_display = ('name', 'device', 'desc', 'url', 'path', 'status')
    exclude = ('create_date', 'update_date')
